import Vue from 'vue'
import App from './App.vue'
import service from './utils/service'
import router from './router'
// 按需引入cookie
import Cookies from 'js-cookie';

Vue.config.productionTip = false

import {CountDown,Swipe, SwipeItem, List,NavBar,Icon,TreeSelect,Grid, GridItem,Form,Field,Button,GoodsAction, GoodsActionIcon, GoodsActionButton,Cascader,Toast,popup,
  Card,SubmitBar,SwipeCell,checkbox,Divider,Stepper,Image as VanImage,Search,DropdownMenu, DropdownItem,Tag,cell} from 'vant';

Vue.prototype.$service=service;
Vue.prototype.$toast=Toast;
Vue.prototype.$cookie=Cookies;
Vue.config.productionTip = false;


Vue.use(CountDown)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use( List)
Vue.use( NavBar )
Vue.use( Icon  )
Vue.use( TreeSelect)
Vue.use( Grid)
Vue.use( GridItem)
Vue.use( Form )
Vue.use( Field  )
Vue.use( Button)
Vue.use( GoodsAction)
Vue.use( GoodsActionIcon)
Vue.use( GoodsActionButton)
Vue.use( Cascader )
Vue.use( popup  )
Vue.use( Card  )
Vue.use( SubmitBar)
Vue.use( SwipeCell )
Vue.use( checkbox )
Vue.use( Divider)
Vue.use( Stepper)
Vue.use( VanImage)
Vue.use( Search )
Vue.use( DropdownMenu )
Vue.use( DropdownItem )
Vue.use( Tag )
Vue.use( cell )


new Vue({
  render: h => h(App),
  router
}).$mount('#app')
